<script>
	export default {
		onLaunch: function() {
			uni.$rui.http.get('kF7Nx0CnVVdv').then(res => {
				uni.setStorage({
					key: "BaseData",
					data: res.data
				})
				if (res.data.expire) {
					uni.removeStorage({
						key: "UserInfo"
					})
				} else {
					uni.setStorage({
						key: "UserToken",
						data: res.data.token || ''
					})
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	page {
		background-image: linear-gradient(-45deg, #f4faff, #f8f8f8);
		font-size: 28rpx;
	}
</style>